<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ include file="/commons/pages/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div class="subtitle">
  <h3>编辑信息</h3>
</div>
<s:form action="AssignMeterInfo!save.action" method="post" name="form">
  <s:token />
  <input type="hidden" name="model.id" value="<s:property value='model.id'/>"/>
  <input type="hidden" name="model.room_id" value="<s:property value='model.room_id'/>"/>
  <input type="hidden" name="model.sink_id" value="<s:property value='model.sink_id'/>"/>
  <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tbl_list">
    <tr>
      <th width="16%" align="right"><font color="red">*</font>分配表序列号：</th>
      <td width="84%"><input name="model.serious_num" type="text" class="webinput" size="25" dataType="Require" msg="请填写" value="<s:property value='model.serious_num'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">分配表型号：</th>
      <td width="84%"><input name="model.model" type="text" class="webinput" size="25" value="<s:property value='model.model'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">分配表类型：</th>
      <td width="84%">
      	<select name="model.type">
      		<option value="">请选择</option>
      		<option value="1" <s:if test="model.type==1">selected="selected"</s:if>>电子双点远传</option>
      		<option value="2" <s:if test="model.type==2">selected="selected"</s:if>>户用热分配表</option>
      		<option value="1" <s:if test="model.type==3">selected="selected"</s:if>>电子单点远传</option>
      		<option value="2" <s:if test="model.type==4">selected="selected"</s:if>>蒸发式</option>
		</select>
	  </td>
    </tr>
    <tr>
      <th width="16%" align="right"><font color="red">*</font>分配表安装日期：</th>
      <td width="84%"><input name="model.install_date" type="text" class="webinput" size="25" dataType="Require" msg="请填写" value="<s:date name='model.install_date' format='yyyy-MM-dd'/>" onclick="fPopCalendar(this);" readonly="readonly"/></td>
    </tr>
    <tr>
      <th width="16%" align="right"><font color="red">*</font>分配表安装人：</th>
      <td width="84%"><input name="model.install_man" type="text" class="webinput" size="25" dataType="Require" msg="请填写" value="<s:property value='model.install_man'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right"><font color="red">*</font>分配表记录人：</th>
      <td width="84%"><input name="model.record_man" type="text" class="webinput" size="25" dataType="Require" msg="请填写" value="<s:property value='model.record_man'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">是否正常：</th>
      <td width="84%">
      	<select name="model.is_normal">
      		<option value="">请选择</option>
      		<option value="0" <s:if test="model.is_normal==0">selected="selected"</s:if>>正常</option>
      		<option value="1" <s:if test="model.is_normal==1">selected="selected"</s:if>>不正常</option>
		</select>
	  </td>
    </tr>
    <tr>
      <th width="16%" align="right">分配表软件版本：</th>
      <td width="84%"><input name="model.soft_version" type="text" class="webinput" size="25" value="<s:property value='model.soft_version'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">分配表硬件版本：</th>
      <td width="84%"><input name="model.hard_version" type="text" class="webinput" size="25" value="<s:property value='model.hard_version'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">备注：</th>
      <td width="84%"><textarea id="textarea" name="model.demo" cols="60" rows="8"><s:property value='model.demo'/></textarea></td>
    </tr>
    <tr>
      <th>&nbsp;</th>
      <td><input type="submit" class="websub" value="提 交" />
        <input type="button" class="websub" onclick="history.back();" value="返 回" /></td>
    </tr>
  </table>
</s:form>
<script src='/commons/scripts/validator.js'></script> 
<script src='/dwr/interface/BaseDataService.js'></script>
<script src='/dwr/engine.js'></script>
<script src='/dwr/util.js'></script>
<script type="text/javascript">
$j(document).ready(function(){
	form.onsubmit = function () {
		return Validator.Validate(this, 3);
	}
});
</script>
</body>
</html>
